<?php

namespace Wap\Controller;
use Common\Controller\FirstendController;

class WeixinController extends FirstendController {
	
	public function index() {
		
		$where['id']=I('get.id');
		if($where['id'] == '')
			$res['url']=C('itk_wap_url');
		
		$item = M('Items')->where($where)->find();
		if($item)
		{
			$res['title']= $item['title'];
			$res['url']= U('jump/index',array('id'=>$item['id']));

		}

		$this->assign('res',$res);
		$this->display('');
	}


}